1 /*
2 
3 Boost Software License - Version 1.0 - August 17th, 2003
4 
5 Permission is hereby granted, free of charge, to any person or organization
6 obtaining a copy of the software and accompanying documentation covered by
7 this license (the "Software") to use, reproduce, display, distribute,
8 execute, and transmit the Software, and to prepare derivative works of the
9 Software, and to permit third-parties to whom the Software is furnished to
10 do so, all subject to the following:
11 
12 The copyright notices in the Software and this entire statement, including
13 the above license grant, this restriction and the following disclaimer,
14 must be included in all copies of the Software, in whole or in part, and
15 all derivative works of the Software, unless such copies or derivative
16 works are solely in the form of machine-executable object code generated by
17 a source language processor.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 DEALINGS IN THE SOFTWARE.
26 
27 */ 
28 
29 module derelict.purple.enum_types;
30 
31 import derelict.glib.gtypes;
32 import derelict.glib.glibconfig;
33 
34 extern (C):
35 
36 alias _Anonymous_0 PurpleMediaCandidateType;
37 alias _Anonymous_1 PurpleMediaCaps;
38 alias _Anonymous_2 PurpleMediaComponentType;
39 alias _Anonymous_3 PurpleMediaInfoType;
40 alias _Anonymous_4 PurpleMediaNetworkProtocol;
41 alias _Anonymous_5 PurpleMediaSessionType;
42 alias _Anonymous_6 PurpleMediaState;
43 
44 enum _Anonymous_0
45 {
46 	PURPLE_MEDIA_CANDIDATE_TYPE_HOST = 0,
47 	PURPLE_MEDIA_CANDIDATE_TYPE_SRFLX = 1,
48 	PURPLE_MEDIA_CANDIDATE_TYPE_PRFLX = 2,
49 	PURPLE_MEDIA_CANDIDATE_TYPE_RELAY = 3,
50 	PURPLE_MEDIA_CANDIDATE_TYPE_MULTICAST = 4
51 }
52 
53 enum _Anonymous_1
54 {
55 	PURPLE_MEDIA_CAPS_NONE = 0,
56 	PURPLE_MEDIA_CAPS_AUDIO = 1,
57 	PURPLE_MEDIA_CAPS_AUDIO_SINGLE_DIRECTION = 2,
58 	PURPLE_MEDIA_CAPS_VIDEO = 4,
59 	PURPLE_MEDIA_CAPS_VIDEO_SINGLE_DIRECTION = 8,
60 	PURPLE_MEDIA_CAPS_AUDIO_VIDEO = 16,
61 	PURPLE_MEDIA_CAPS_MODIFY_SESSION = 32,
62 	PURPLE_MEDIA_CAPS_CHANGE_DIRECTION = 64
63 }
64 
65 enum _Anonymous_2
66 {
67 	PURPLE_MEDIA_COMPONENT_NONE = 0,
68 	PURPLE_MEDIA_COMPONENT_RTP = 1,
69 	PURPLE_MEDIA_COMPONENT_RTCP = 2
70 }
71 
72 enum _Anonymous_3
73 {
74 	PURPLE_MEDIA_INFO_HANGUP = 0,
75 	PURPLE_MEDIA_INFO_ACCEPT = 1,
76 	PURPLE_MEDIA_INFO_REJECT = 2,
77 	PURPLE_MEDIA_INFO_MUTE = 3,
78 	PURPLE_MEDIA_INFO_UNMUTE = 4,
79 	PURPLE_MEDIA_INFO_PAUSE = 5,
80 	PURPLE_MEDIA_INFO_UNPAUSE = 6,
81 	PURPLE_MEDIA_INFO_HOLD = 7,
82 	PURPLE_MEDIA_INFO_UNHOLD = 8
83 }
84 
85 enum _Anonymous_4
86 {
87 	PURPLE_MEDIA_NETWORK_PROTOCOL_UDP = 0,
88 	PURPLE_MEDIA_NETWORK_PROTOCOL_TCP = 1
89 }
90 
91 enum _Anonymous_5
92 {
93 	PURPLE_MEDIA_NONE = 0,
94 	PURPLE_MEDIA_RECV_AUDIO = 1,
95 	PURPLE_MEDIA_SEND_AUDIO = 2,
96 	PURPLE_MEDIA_RECV_VIDEO = 4,
97 	PURPLE_MEDIA_SEND_VIDEO = 8,
98 	PURPLE_MEDIA_AUDIO = 3,
99 	PURPLE_MEDIA_VIDEO = 12
100 }
101 
102 enum _Anonymous_6
103 {
104 	PURPLE_MEDIA_STATE_NEW = 0,
105 	PURPLE_MEDIA_STATE_CONNECTED = 1,
106 	PURPLE_MEDIA_STATE_END = 2
107 }
108 
109 
110 version(Derelict_Link_Static)
111 {
112     extern( C ) nothrow 
113     {
114         GType purple_media_candidate_type_get_type();
115         GType purple_media_caps_get_type();
116         GType purple_media_info_type_get_type();
117         GType purple_media_network_protocol_get_type();
118         GType purple_media_session_type_get_type();
119         GType purple_media_state_changed_get_type();
120     }
121 }
122 else
123 {
124     extern( C ) nothrow 
125     {
126         alias da_purple_media_candidate_type_get_type = GType function();		
127         alias da_purple_media_caps_get_type = GType function();					
128         alias da_purple_media_info_type_get_type = GType function();			
129         alias da_purple_media_network_protocol_get_type = GType function();		
130         alias da_purple_media_session_type_get_type = GType function();			
131         alias da_purple_media_state_changed_get_type = GType function();		
132     }
133 
134     __gshared
135     {
136 	    da_purple_media_candidate_type_get_type purple_media_candidate_type_get_type;
137 	    da_purple_media_caps_get_type purple_media_caps_get_type;
138 	    da_purple_media_info_type_get_type purple_media_info_type_get_type;
139 	    da_purple_media_network_protocol_get_type purple_media_network_protocol_get_type;
140 	    da_purple_media_session_type_get_type purple_media_session_type_get_type;
141 	    da_purple_media_state_changed_get_type purple_media_state_changed_get_type;
142     }
143 }